
package com.fis.hlo.pm.persistence;















public class CustomItems {
	protected String code;
	protected Items group;
	protected Long groupId;
	protected long itemId;
	protected String name;
	protected String orderBy;
	protected String status;
	protected String type;
	protected boolean selected;
	protected Items item;
	
	public CustomItems() {
	}

	public CustomItems(String code, Items group, Long groupId, long itemId,
			String name, String orderBy, String status, String type,
			boolean selected, Items item) {
		this.code = code;
		this.group = group;
		this.groupId = groupId;
		this.itemId = itemId;
		this.name = name;
		this.orderBy = orderBy;
		this.status = status;
		this.type = type;
		this.selected = selected;
		this.item = item;
	}

	public Items getItem() {
		return item;
	}

	public void setItem(Items item) {
		this.item = item;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Items getGroup() {
		return group;
	}

	public void setGroup(Items group) {
		this.group = group;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public long getItemId() {
		return itemId;
	}

	public void setItemId(long itemId) {
		this.itemId = itemId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	@Override
	public boolean equals(Object obj) {
		if(obj instanceof CustomItems){
			CustomItems c = (CustomItems)obj;
			return c.getItemId() == itemId;
		}
		else if(obj instanceof Items){
			Items i = (Items)obj;
			return i.getItemId() ==  itemId;
		}
		
		return false;
	}

}